import Axios from "utils/Axios";
import { getEncryptPwd } from "utils/helper";

export const doLogin = (data: { email: string; pwd: string }) => {
  data.pwd = getEncryptPwd(data.pwd) as string;
  return Axios({
    url: "/api/health/doctor/v1/login",
    method: "post",
    params: data,
  });
};